package com.ruoyi.seal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.seal.mapper.SealTypeMapper;
import com.ruoyi.seal.domain.SealType;
import com.ruoyi.seal.service.ISealTypeService;

/**
 * 用印类型Service业务层处理
 *
 * @author ruoyi
 * @date 2022-08-30
 */
@Service
public class SealTypeServiceImpl implements ISealTypeService
{
    @Autowired
    private SealTypeMapper sealTypeMapper;

    /**
     * 查询用印类型
     *
     * @param sealTypeId 用印类型主键
     * @return 用印类型
     */
    @Override
    public SealType selectSealTypeBySealTypeId(Long sealTypeId)
    {
        return sealTypeMapper.selectSealTypeBySealTypeId(sealTypeId);
    }

    /**
     * 查询用印类型列表
     *
     * @param sealType 用印类型
     * @return 用印类型
     */
    @Override
    public List<SealType> selectSealTypeList(SealType sealType)
    {
        return sealTypeMapper.selectSealTypeList(sealType);
    }

    /**
     * 新增用印类型
     *
     * @param sealType 用印类型
     * @return 结果
     */
    @Override
    public int insertSealType(SealType sealType)
    {
        return sealTypeMapper.insertSealType(sealType);
    }

    /**
     * 修改用印类型
     *
     * @param sealType 用印类型
     * @return 结果
     */
    @Override
    public int updateSealType(SealType sealType)
    {
        return sealTypeMapper.updateSealType(sealType);
    }

    /**
     * 批量删除用印类型
     *
     * @param sealTypeIds 需要删除的用印类型主键
     * @return 结果
     */
    @Override
    public int deleteSealTypeBySealTypeIds(Long[] sealTypeIds)
    {
        return sealTypeMapper.deleteSealTypeBySealTypeIds(sealTypeIds);
    }

    /**
     * 删除用印类型信息
     *
     * @param sealTypeId 用印类型主键
     * @return 结果
     */
    @Override
    public int deleteSealTypeBySealTypeId(Long sealTypeId)
    {
        return sealTypeMapper.deleteSealTypeBySealTypeId(sealTypeId);
    }
}
